define("vs/monaco.contribution-D2OdxNBt",["require","exports","./editor.api-CalNCsUg"],function(t,e,i){"use strict";var n,s=((n=s||{})[n.None=0]="None",n[n.CommonJS=1]="CommonJS",n[n.AMD=2]="AMD",n[n.UMD=3]="UMD",n[n.System=4]="System",n[n.ES2015=5]="ES2015",n[n.ESNext=99]="ESNext",n),o=(t=>(t[t.None=0]="None",t[t.Preserve=1]="Preserve",t[t.React=2]="React",t[t.ReactNative=3]="ReactNative",t[t.ReactJSX=4]="ReactJSX",t[t.ReactJSXDev=5]="ReactJSXDev",t))(o||{}),r=(t=>(t[t.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",t[t.LineFeed=1]="LineFeed",t))(r||{}),a=(t=>(t[t.ES3=0]="ES3",t[t.ES5=1]="ES5",t[t.ES2015=2]="ES2015",t[t.ES2016=3]="ES2016",t[t.ES2017=4]="ES2017",t[t.ES2018=5]="ES2018",t[t.ES2019=6]="ES2019",t[t.ES2020=7]="ES2020",t[t.ESNext=99]="ESNext",t[t.JSON=100]="JSON",t[t.Latest=99]="Latest",t))(a||{}),d=(t=>(t[t.Classic=1]="Classic",t[t.NodeJs=2]="NodeJs",t))(d||{});class c{constructor(t,e,n,s,o){this._onDidChange=new i.Emitter,this._onDidExtraLibsChange=new i.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(t),this.setDiagnosticsOptions(e),this.setWorkerOptions(n),this.setInlayHintsOptions(s),this.setModeConfiguration(o),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(t,e){let i;if(i=typeof e>"u"?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:e,this._extraLibs[i]&&this._extraLibs[i].content===t)return{dispose:()=>{}};let n=1;return this._removedExtraLibs[i]&&(n=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(n=this._extraLibs[i].version+1),this._extraLibs[i]={content:t,version:n},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let t=this._extraLibs[i];t&&t.version===n&&(delete this._extraLibs[i],this._removedExtraLibs[i]=n,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(t){for(const t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),t&&t.length>0)for(const e of t){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(t){this._compilerOptions=t||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(t){this._diagnosticsOptions=t||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(t){this._workerOptions=t||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(t){this._inlayHintsOptions=t||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(t){}setEagerModelSync(t){this._eagerModelSync=t}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(t){this._modeConfiguration=t||Object.create(null),this._onDidChange.fire(void 0)}}const h="5.9.3",l={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},g=new c({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},l),u=new c({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},l),p=()=>_().then(t=>t.getTypeScriptWorker()),S=()=>_().then(t=>t.getJavaScriptWorker());function _(){return new Promise((e,i)=>t(["./tsMode-CZz1Umrk"],e,i))}i.languages.onLanguage("typescript",()=>_().then(t=>t.setupTypeScript(g))),i.languages.onLanguage("javascript",()=>_().then(t=>t.setupJavaScript(u)));const b=Object.freeze(Object.defineProperty({__proto__:null,JsxEmit:o,ModuleKind:s,ModuleResolutionKind:d,NewLineKind:r,ScriptTarget:a,getJavaScriptWorker:S,getTypeScriptWorker:p,javascriptDefaults:u,typescriptDefaults:g,typescriptVersion:h},Symbol.toStringTag,{value:"Module"}));e.JsxEmit=o,e.ModuleKind=s,e.ModuleResolutionKind=d,e.NewLineKind=r,e.ScriptTarget=a,e.getJavaScriptWorker=S,e.getTypeScriptWorker=p,e.javascriptDefaults=u,e.monaco_contribution=b,e.typescriptDefaults=g,e.typescriptVersion=h});